12 ERRORS Compile
#1

PHP код:
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(205 -- 206) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(210 -- 211) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(215 -- 216) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(220 -- 221) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(225 -- 226) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(230 -- 231) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(235 -- 236) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(240 -- 241) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(245 -- 246) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(250 -- 251) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(255 -- 256) : error 001expected token","but found "-identifier-"
C:\Users\Borisov\Desktop\Gang Wars Role Play\gamemodes\RPBG.pwn(260 -- 261) : error 001expected token","but found "-identifier-"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
12 Errors

Reply
#2

Show these Lines, You are definitely missing the ",".
Reply
#3

You're missing commas it seems, show the code.
Reply
#4

PHP код:
{
    if(
pickupid == GrooveHealth){
    
SendClientMessage(playerid0x33AA33AA"Okay my nigga you are done!"
    
SetPlayerHealth(playerid100);
    }
    if(
pickupid == BallasHealth){
    
SendClientMessage(playerid0xFFC0CBAA"Okay dude you are up!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == VagosHealth){
    
SendClientMessage(playerid0xFFFF00AA"Okay Amigo you are monster now!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == AztecaHealth){
    
SendClientMessage(playerid0x33CCFFAA"Okay Hermano you'r up!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == LSPDHealth){
    
SendClientMessage(playerid0xAA3333AA"Okay SIR you are healthy!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == HospitalOne){
    
SendClientMessage(playerid0xAA3333AA"You are healted sir!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == HospitalTwo){
    
SendClientMessage(playerid0xAA3333AA"You are healted sir!"
    
SetPlayerHealth(playerid100);
    }
    
    if(
pickupid == GrooveArmour){
    
SendClientMessage(playerid0x33AA33AA"Iron Man is that you?"
    
SetPlayerArmour(playerid100);
    }
    if(
pickupid == BallasArmour){
    
SendClientMessage(playerid0xFFC0CBAA"Shit man you are IRON now!"
    
SetPlayerArmour(playerid100);
    }
    if(
pickupid == VagosArmour){
    
SendClientMessage(playerid0xFFFF00AA"Madre querida you are IRON amigo!"
    
SetPlayerArmour(playerid100);
    }
    if(
pickupid == AztecaArmour){
    
SendClientMessage(playerid0x33CCFFAA"Okay Hermano you are IRON now!"
    
SetPlayerArmour(playerid100);
    }
    if(
pickupid == LSPDArmour){
    
SendClientMessage(playerid0xAA3333AA"Okay SIR you are armored!"
    
SetPlayerArmour(playerid100);
    }
    return 
1;

Reply
#5

You're supposed to use it like:
Код:
SendClientMessage(playerid, 0xAA3333AA, "text");
And why are you using thousands of if-statements?
A switch would be much better.
Reply
#6

Here You GO!!!
PHP код:

    if(
pickupid == GrooveHealth){ 
    
SendClientMessage(playerid0x33AA33AA"Okay my nigga you are done!");
    
SetPlayerHealth(playerid100); 
    } 
    if(
pickupid == BallasHealth){ 
    
SendClientMessage(playerid0xFFC0CBAA"Okay dude you are up!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == VagosHealth){ 
    
SendClientMessage(playerid0xFFFF00AA"Okay Amigo you are monster now!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == AztecaHealth){ 
    
SendClientMessage(playerid0x33CCFFAA"Okay Hermano you'r up!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == LSPDHealth){ 
    
SendClientMessage(playerid0xAA3333AA"Okay SIR you are healthy!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == HospitalOne){ 
    
SendClientMessage(playerid0xAA3333AA"You are healted sir!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == HospitalTwo){ 
    
SendClientMessage(playerid0xAA3333AA"You are healted sir!");
    
SetPlayerHealth(playerid100); 
    } 
     
    if(
pickupid == GrooveArmour){ 
    
SendClientMessage(playerid0x33AA33AA"Iron Man is that you?"); 
    
SetPlayerArmour(playerid100); 
    } 
    if(
pickupid == BallasArmour){ 
    
SendClientMessage(playerid0xFFC0CBAA"Shit man you are IRON now!");
    
SetPlayerArmour(playerid100); 
    } 
    if(
pickupid == VagosArmour){ 
    
SendClientMessage(playerid0xFFFF00AA"Madre querida you are IRON amigo!");
    
SetPlayerArmour(playerid100); 
    } 
    if(
pickupid == AztecaArmour){ 
    
SendClientMessage(playerid0x33CCFFAA"Okay Hermano you are IRON now!");
    
SetPlayerArmour(playerid100); 
    } 
    if(
pickupid == LSPDArmour){ 
    
SendClientMessage(playerid0xAA3333AA"Okay SIR you are armored!");
    
SetPlayerArmour(playerid100); 
    } 
    return 
1

Reply
#7

THX AIRMAN!!!!!!!!!
Reply
#8

NP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)