pawno erori
#1

hy, when i compil the mode im get eror

eror is here

C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9339) : error 017: undefined symbol "giveplayerid"
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9340) : error 017: undefined symbol "giveplayerid"
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9342) : error 017: undefined symbol "string"
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9342) : error 017: undefined symbol "string"
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9342) : error 029: invalid expression, assumed zero
C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(9342) : fatal error 107: too many error messages on one line

here is the linie ware give me eror

Код:
stock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
	new fine[MAX_PLAYERS];
 	new str[256];

 	if(objectcreated!=maxobject)
  	{
    	CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
     	objectcreated++;
  	}
  	if((distance1[playerid])>speed)
  	{
		if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
		{
			fine[playerid]=((distance1[playerid]*17/10)-speed);
			GivePlayerMoney(playerid, -2000);
			format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
			SendClientMessage(playerid, VERDEFRACO, str);
			PlayerInfo[giveplayerid][pCarLicPoint] += 1;
			if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
			{
   				format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De La  %s  (Ai Acumulat 15 Puncte De Penalizare), reason: %s", sendername, (result));
				SendClientMessage(giveplayerid, COLOR_ADMIN, string);
 				PlayerInfo[giveplayerid][pCarLic] = 0;
				PlayerInfo[giveplayerid][pCarLicPoint] = 0;
				return 1;
			}
			PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
		}
	}
}
pls help sory for my englesh im not good for englesh
Reply
#2

Well, if you had a basic understanding, you would see that it says "undefined symbol"

First of all, how about you start by changing new str[256]; to new string[128]; to save you some work.

Secondly, giveplayerid. Heres a tip - define it. I assume that you are actually meaning to put 'playerid' in there, so I suggest you do that.

If you get undefined symbol, it means you haven't defined it. That could be in the callback header, a global variable, or a local variable.
Reply
#3

Try this:
pawn Код:
stock AddFlitsPaal(playerid, giveplayerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
    new fine[MAX_PLAYERS];
    new str[128];

    if(objectcreated!=maxobject)
    {
        CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
        objectcreated++;
    }
    if((distance1[playerid])>speed)
    {
        if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
        {
            fine[playerid]=((distance1[playerid]*17/10)-speed);
            GivePlayerMoney(playerid, -2000);
            format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
            SendClientMessage(playerid, VERDEFRACO, str);
            PlayerInfo[giveplayerid][pCarLicPoint] += 1;
            if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
            {
                format(str, sizeof(str), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De La  %s  (Ai Acumulat 15 Puncte De Penalizare), reason: %s", sendername, (result));
                SendClientMessage(giveplayerid, COLOR_ADMIN, str);
                PlayerInfo[giveplayerid][pCarLic] = 0;
                PlayerInfo[giveplayerid][pCarLicPoint] = 0;
                return 1;
            }
            PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
        }
    }
}
I'm not sure if that's gonna work but....
Reply
#4

i finish bat i dont post bat now i heve a olther problem onli to id 0 give carlicpoint +1 to id 1-500 give only ticket pls help make to give all carlicpoint+1 no only id 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)