need help
#1

help i get errors

what is wrong whit this?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stars", cmdtext, true, 10) == 0)
    {
        SetPlayerWantedLevel(playerid,20);
        SendClientMessageToAll(RED, "Cops Jail %s He Or She Has 12 Stars");
        return 1;
    }
    return 0;
}
#endif
this are the errors:

pawn Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : warning 215: expression has no effect
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
it says line 33
this is line 33:

pawn Код:
SendClientMessageToAll(RED, "Cops Jail %s He Or She Has 12 Stars")
whats wrong? please help ty alot
Reply
#2

Quote:
Originally Posted by luckie12
hi i need help

how to make RCON admins a player to a cop? with commands?
plzzz help me
Reply
#3

[quote=luckie12 ]
Quote:
Originally Posted by luckie12
plzzz help me
plz
Reply
#4

Quote:

SendClientMessageToAll(RED, "Cops Jail %s He Or She Has 12 Stars")

Learn to script.

Код:
A)
you need a string.
B) you forgot the ;
C) Gah..
remember the ;
Reply
#5

Quote:
Originally Posted by harly
Quote:

SendClientMessageToAll(RED, "Cops Jail %s He Or She Has 12 Stars")

Learn to script.

Код:
A)
you need a string.
B) you forgot the ;
C) Gah..
remember the ;
pawn Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : warning 215: expression has no effect
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\stars4.pwn(33) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Also %s won't do anything unless it's in format(...);
example:
pawn Код:
new tmpstring[MAX_PLAYER_NAME+50];
format(tmpstring,sizeof(tmpstring),"All on duty officers, arrest and incarcerate %s; he or she has an arrest warrant",whateverplayervariable);
SendClientMessageToAll(RED,tmpstring);
Reply
#7

A string whitout format = Error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)