how to define this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to define this? (
/showthread.php?tid=547080)
how to define this? -
IndependentGaming - 20.11.2014
Greetings,
I have errors what i cant resolve can someone help me with this ?
Код:
\gamemodes\lost.pwn(2344) : warning 202: number of arguments does not match definition
\gamemodes\lost.pwn(2344) : warning 202: number of arguments does not match definition
\gamemodes\lost.pwn(2358) : warning 202: number of arguments does not match definition
\gamemodes\lost.pwn(2378) : warning 202: number of arguments does not match definition
\gamemodes\lost.pwn(2378) : warning 202: number of arguments does not match definition
\gamemodes\lost.pwn(3052) : error 017: undefined symbol "string"
\gamemodes\lost.pwn(3052) : error 017: undefined symbol "string"
\gamemodes\lost.pwn(3052) : error 029: invalid expression, assumed zero
\gamemodes\lost.pwn(3052) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line 5035
Код:
GetWeaponNameEx(WeaponInfo[i][wWeaponID], string, sizeof(string));
Re : how to define this? -
Dutheil - 20.11.2014
Read this :
https://sampforum.blast.hk/showthread.php?tid=274028
Otherwise, show us the code
Re: how to define this? -
IndependentGaming - 20.11.2014
This is the whole code:
Код:
if(dialogid == WEAPONS_PICKUP_DIALOG)
{
if(response == 0) return SendClientMessage(playerid, -1, "You have decided not to pick a weapon up.");
new i = WeaponsFound[playerid][listitem];
if(WeaponInfo[i][wWeaponFaction] != 0 && PlayerInfo[playerid][pMember] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "This is a faction weapon, so you cannot pick it up!");
return 1;
}
GetWeaponNameEx(WeaponInfo[i][wWeaponID], string, sizeof(string));
format(string, sizeof(string), "You have picked a weapon up. (%s)", string);
SendClientMessage(playerid, -1, string);
GivePlayerWeapon(playerid, WeaponInfo[i][wWeaponID], 60000);
DestroyDynamicObject(WeaponInfo[i][wObject]);
WeaponInfo[i][wWeaponFaction] = 0;
WeaponInfo[i][wWeaponInt] = 0;
WeaponInfo[i][wWeaponVW] = 0;
return 1;
}
Re : how to define this? -
Dutheil - 20.11.2014
pawn Код:
new string[64];
GetWeaponName(WeaponInfo[i][wWeaponID], string, sizeof(string));
format(string, sizeof(string), "You have picked a weapon up. (%s)", string);
SendClientMessage(playerid, -1, string);
Use GetWeaponName or show me the function GetWeaponNameEx with his parameters