19.11.2011, 04:15
I'm new to PAWNO and i'm trying to teach myself, this is why I don't know why I am getting this error.
The error is:
And the lines are starting from the top:
2122 if(strcmp(cmdtext) ETCCC..
2123 {
2124 If isplayerEtc SetVehicleHealth etc..
2125 If isplayeretc RepairVehicle Etc
2126 if Isplayeretc SendClientMessage
2127 else SendClientMessage ETC..
2128 return 1;
2129
2130 return 0;
Please help i'm and explain what I did wrong would be great!
Code:
if(strcmp(cmdtext,"/fv",true) == 0) { if IsPlayerAdmin(playerid)SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); if IsPlayerAdmin(playerid)RepairVehicle(GetPlayerVehicleID(playerid)); if IsPlayerAdmin(playerid)SendClientMessage(playerid,RED,"ADMIN: Your vehicle has been repaired."); else SendClientMessage(playerid,RED,"ERROR: This is an Admin only command."); return 1; }
Quote:
C:\Users\Kyle\Desktop\PAWNO\gamemodes\gurp.pwn(212 4) : error 001: expected token: "*then", but found "-identifier-" C:\Users\Kyle\Desktop\PAWNO\gamemodes\gurp.pwn(212 5) : error 001: expected token: "*then", but found "-identifier-" C:\Users\Kyle\Desktop\PAWNO\gamemodes\gurp.pwn(212 6) : error 001: expected token: "*then", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
2122 if(strcmp(cmdtext) ETCCC..
2123 {
2124 If isplayerEtc SetVehicleHealth etc..
2125 If isplayeretc RepairVehicle Etc
2126 if Isplayeretc SendClientMessage
2127 else SendClientMessage ETC..
2128 return 1;
2129
2130 return 0;
Please help i'm and explain what I did wrong would be great!