SA-MP Forums Archive
GameTextForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GameTextForPlayer (/showthread.php?tid=389843)



GameTextForPlayer - Patrick - 03.11.2012

When i do that Change the SendClientMessage To GameTextForPlayerab And It Shows me error

Error Code
Код:
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : warning 215: expression has no effect
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : warning 215: expression has no effect
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 001: expected token: ";", but found ")"
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 029: invalid expression, assumed zero
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : fatal error 107: too many error messages on one line

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


4 Errors.
The Code And The Line
Код:
	if(getCheckpointType(playerid) == CP_BincoMain)
	{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
	        SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
	        return 1;
		}
       GameTextForPlayer(playerid,"~y~Type /robstore to ~b~rob Cluckin Bell"300,3);
		return 1;
	}
	return 1;
}



Re: GameTextForPlayer - Patrick - 03.11.2012

Anyone Help Me? Pls


Re: GameTextForPlayer - Stu1 - 03.11.2012

PHP код:
    if(getCheckpointType(playerid) == CP_BincoMain)
     {
    if(
IsPlayerInAnyVehicle(playerid)
       {      
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.") ;
          } 
      else
           {
             
GameTextForPlayer(playerid,"~y~Type /robstore to ~b~rob Cluckin Bell"300,3);     
           }    
}     
return 
1;
 } 
Fix the indentations, I am on my phone


Re: GameTextForPlayer - YoYo123 - 03.11.2012

Код:
GameTextForPlayer(playerid,"~y~Type /robstore to ~b~rob Cluckin Bell"300,3);
You forgot a comma after the second parameter.


Re: GameTextForPlayer - Patrick - 03.11.2012

Still Error
Код:
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11508) : error 001: expected token: ")", but found "{"
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : warning 215: expression has no effect
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : warning 215: expression has no effect
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 001: expected token: ";", but found ")"
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : error 029: invalid expression, assumed zero
C:\Users\Subang\Desktop\Ultimate Cops N Robbers1\gamemodes\Team-TU.pwn(11512) : fatal error 107: too many error messages on one line

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


5 Errors.



Re: GameTextForPlayer - Stu1 - 03.11.2012

Look at tge post above yours and try that with the code i put


Re: GameTextForPlayer - Patrick - 03.11.2012

@Stu1

I Used That Code And Show Me That Error