stock SaveItems(playerid) { GetPlayerSkin(playerid, PSkin[playerid]); GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); for(new i; i <13; i++) { GetPlayerWeaponData(playerid, pWeapons[playerid][0] , pWeapons[playerid][1] ); } return 1;}stock LoadItems(playerid) { ResetPlayerWeapons(playerid); //Letörli a DM ben kapott fegyvereket SetPlayerSkin(playerid, PSkin[playerid]); SetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); for(new i; i<13; i++) { GivePlayerWeapon(playerid, pWeapons[playerid][0], pWeapons[playerid][1]); } return 1;}
SaveItems(playerid);
LoadItems(playerid);
C:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\gamemodes\\Hybryd.pwn(1088) : warning 202: number of arguments does not match definitionC:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\gamemodes\\Hybryd.pwn(1091) : error 035: argument type mismatch (argument 2)C:\\Documents and Settings\\Robi\\Desktop\\Uj szerver\\gamemodes\\Hybryd.pwn(1101) : error 035: argument type mismatch (argument 2)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
new PSkin[MAX_PLAYERS], Float:pX[MAX_PLAYERS], Float:pY[MAX_PLAYERS], Float:pZ[MAX_PLAYERS], pWeapons[MAX_PLAYERS][13][2];stock SaveItems(playerid){ GetPlayerSkin(playerid, PSkin[playerid]); GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); for(new i; i <13; i++) { GetPlayerWeaponData(playerid, pWeapons[playerid][0] , pWeapons[playerid][1] ); } return 1;}stock LoadItems(playerid){ ResetPlayerWeapons(playerid); //Letörli a DM ben kapott fegyvereket SetPlayerSkin(playerid, PSkin[playerid]); SetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]); for(new i; i<13; i++) { GivePlayerWeapon(playerid, pWeapons[playerid][0], pWeapons[playerid][1]); } return 1;}