how to define this?
#1

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));
Reply
#2

Read this : https://sampforum.blast.hk/showthread.php?tid=274028

Otherwise, show us the code
Reply
#3

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;
    }
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)