Errors
#1

C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44455) : warning 203: symbol is never used: "carname"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : error 017: undefined symbol "IsAdmin"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : error 017: undefined symbol "SendMsg"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 017: undefined symbol "RED"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 017: undefined symbol "GRAY_"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : warning 215: expression has no effect
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

show the whole code
and for 2nd and 3rd error its IsPlayerAdmin and SendClientMessage
Reply
#3

Код:
CMD:afix(playerid,params[])
{
   new target;
   if(!IsAdmin(playerid,3)) return SendMsg(playerid, 5);
   if(sscanf(params,"u",target)) return SendClientMessage(playerid,RED,"USAGE: /afix "GRAY_"<playerid>");
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, RED, ""RED2_"{FF0000}»Warning«{FF1919}"RED_" This player is not connected");
   if(IsPlayerNPC(target) && !strcmp(pName[target],"Jonny")) SendNpcPM(playerid," retard!!"),GiveMedal(playerid,24);
   if(IsPlayerNPC(target)) return 0;
   if(GetPVarInt(target,"RACER")) return SendClientMessage(playerid,RED," "RED2_"{FF0000}»Warning«{FF1919}"RED_" you cant fix cars in race");

   if(!IsPlayerInAnyVehicle(target)) return SendClientMessage(playerid,RED," "RED2_"{FF0000}»Warning«{FF1919}"RED_" this player is not in a vehicle");

   RepairVehicle(GetPlayerVehicleID(target));
   SetVehicleHealth(GetPlayerVehicleID(target), 1000.0);

   new str[128];
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} you have fixed %s's vehicle",pName[target],target);
   SendClientMessage(playerid,AdminInfo,str);
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} your vehicle has been fixed by admin %s",pName[playerid]);
   SendClientMessage(target,AdminInfo,str);
   return 1;
}
Reply
#4

C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44455) : warning 203: symbol is never used: "carname"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : warning 202: number of arguments does not match definition
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : warning 202: number of arguments does not match definition
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 017: undefined symbol "RED"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 017: undefined symbol "GRAY_"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : warning 215: expression has no effect
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44663) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#5

Delete 'carname' that's your first warning because you've defined it and you never used it..

pawn Код:
CMD:afix(playerid,params[])
{
   new target;
   if(!IsAdmin(playerid,3)) return SendMsg(playerid, 5);
   if(sscanf(params,"u",target)) return SendClientMessage(playerid,0xF69521AA,"USAGE: /afix <playerid>"); //Your color doesn't work
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, RED, ""RED2_"{FF0000}»Warning«{FF1919}"RED_" This player is not connected");
   if(IsPlayerNPC(target) && !strcmp(pName[target],"Jonny")) SendNpcPM(playerid," retard!!"),GiveMedal(playerid,24);
   if(IsPlayerNPC(target)) return 0;
   if(GetPVarInt(target,"RACER")) return SendClientMessage(playerid,RED," "RED2_"{FF0000}»Warning«{FF1919}"RED_" you cant fix cars in race");

   if(!IsPlayerInAnyVehicle(target)) return SendClientMessage(playerid,RED," "RED2_"{FF0000}»Warning«{FF1919}"RED_" this player is not in a vehicle");

   RepairVehicle(GetPlayerVehicleID(target));
   SetVehicleHealth(GetPlayerVehicleID(target), 1000.0);

   new str[128];
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} you have fixed %s's vehicle",pName[target],target);
   SendClientMessage(playerid, 0xF69521AA, str); //Syntax was also wrong
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} your vehicle has been fixed by admin %s",pName[playerid]);
   SendClientMessage(target, 0xF69521AA, str); //The syntax was wrong
   return 1;
}
Try something like that.
Reply
#6

C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44455) : warning 203: symbol is never used: "carname"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : error 017: undefined symbol "IsAdmin"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44662) : error 017: undefined symbol "SendMsg"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44664) : error 017: undefined symbol "RED"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44664) : error 017: undefined symbol "RED2_"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44664) : warning 215: expression has no effect
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44664) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44664) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#7

I really think you should read up on color embedding and formatting messages..
https://sampwiki.blast.hk/wiki/Colour_Embedding

pawn Код:
CMD:afix(playerid,params[])
{
   new target;
   if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xDEEE20FF, "You're not an admin..");
   if(sscanf(params,"u",target)) return SendClientMessage(playerid,0xF69521AA,"USAGE: /afix <playerid>"); //Your color doesn't work
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "{FF0000}»Warning«{FF1919} This player is not connected");
   if(IsPlayerNPC(target) && !strcmp(pName[target],"Jonny")) SendNpcPM(playerid," retard!!"),GiveMedal(playerid,24);
   if(IsPlayerNPC(target)) return 0;
   if(GetPVarInt(target,"RACER")) return SendClientMessage(playerid,-1,"{FF0000}»Warning«{FF1919} you cant fix cars in race");

   if(!IsPlayerInAnyVehicle(target)) return SendClientMessage(playerid,-1,"{FF0000}»Warning«{FF1919} this player is not in a vehicle");

   RepairVehicle(GetPlayerVehicleID(target));
   SetVehicleHealth(GetPlayerVehicleID(target), 1000.0);

   new str[128];
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} you have fixed %s's vehicle",pName[target],target);
   SendClientMessage(playerid, -1, str); //Syntax was also wrong
   format(str,sizeof(str)," {004131}»Admininfo«{00FF99} your vehicle has been fixed by admin %s",pName[playerid]);
   SendClientMessage(target, -1, str); //The syntax was wrong
   return 1;
}
Reply
#8

Код:
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44455) : warning 203: symbol is never used: "carname"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 017: undefined symbol "pName"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : warning 215: expression has no effect
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 029: invalid expression, assumed zero
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#9

Quote:
Originally Posted by VanSiera
Посмотреть сообщение
Код:
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44455) : warning 203: symbol is never used: "carname"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 017: undefined symbol "pName"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : warning 215: expression has no effect
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : error 029: invalid expression, assumed zero
C:\Documents and Settings\s\Desktop\SADM_by_Double_O_Seven\gamemodes\tttt.pwn(44665) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Dude? Are you just copy and pasting without reading, I really do think you should learn what you're doing instead of just using other peoples code..

Never the less like I said delete the 'carname' function as you've defined it and haven't used it

pawn Код:
new pName[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, pName, sizeof(pName));
And theres your pName define
Reply
#10

C:\Documents and Settings\s\Desktop\1\gamemodes\tttt.pwn(44471) : error 017: undefined symbol "SendNpcPM"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)