[Help] Error's and warning's - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Error's and warning's (
/showthread.php?tid=156535)
[Help] Error's and warning's -
hab2ever - 23.06.2010
I have add this [TMS] clan
But i got an error's and warning's
Код:
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 1) {
SetPlayerColor(playerid,ADMIN_RED);
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"[TMS]%s", name);
SetPlayerName(playerid, string);
GameTextForPlayer(playerid,"~y~~n~~n~~n~~n~Welcome ~r~Admin",4000,3);
}
}
Error's and warning's
Код:
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7191) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7191) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7192) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7192) : error 035: argument type mismatch (argument 2)
Help please 
Also sorry for my bad english!
Re: [Help] Error's and warning's -
NiiRV4N4 - 23.06.2010
pawn Код:
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 1) {
SetPlayerColor(playerid,ADMIN_RED);
//new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"[TMS]%s", name);
SetPlayerName(playerid, string);
GameTextForPlayer(playerid, "~y~~n~~n~~n~~n~Welcome ~r~Admin", 3000, 3);
}
}
Try that.
Re: [Help] Error's and warning's -
hab2ever - 23.06.2010
Thanks