help NEW - 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 NEW (
/showthread.php?tid=153704)
help NEW -
willsuckformoney - 10.06.2010
Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
}
Код:
C:\Users\Charlie\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(388) : warning 217: loose indentation
C:\Users\Charlie\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(388) : error 017: undefined symbol "cmdtext"
Re: help -
ViruZZzZ_ChiLLL - 10.06.2010
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new PName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, PName, sizeof(PName));
}
switch (reason)
{
case 0: format(string, sizeof(string), "%s lost connection to the server.", PName);
case 1: format(string, sizeof(string), "%s has left the server.", PName);
case 2: format(string, sizeof(string), "%s has left the server. (kicked)", PName);
}
return 1;
}
your new String is capital :P
Re: help -
willsuckformoney - 10.06.2010
Код:
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(330) : warning 225: unreachable code
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(330) : error 029: invalid expression, assumed zero
C:\Users\*****\Desktop\SAMP Server\gamemodes\WSFMGangWars.pwn(330) : error 004: function "OnPlayerDisconnect" is not implemented
Код:
public OnPlayerDisconnect(playerid, reason)
{
new PName[MAX_PLAYER_NAME];
new string [128];
GetPlayerName(playerid, PName, sizeof(PName));
}
switch (creason)
{
case 0: format(string, sizeof(string), "%s lost connection to the server.", PName);
case 1: format(string, sizeof(string), "%s has left the server.", PName);
case 2: format(string, sizeof(string), "%s has left the server. (kicked)", PName);
}
return 1;
}
Re: help -
ViruZZzZ_ChiLLL - 10.06.2010
I've edited my last post look its all neat looking

also its not creason, its reason :P
Re: help -
willsuckformoney - 10.06.2010
i know that was my mistake i changed it and the errors was same
Re: help -
ViruZZzZ_ChiLLL - 10.06.2010
Oops, my mistake here :
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new PName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, PName, sizeof(PName));
switch (reason)
{
case 0: format(string, sizeof(string), "%s lost connection to the server.", PName);
case 1: format(string, sizeof(string), "%s has left the server.", PName);
case 2: format(string, sizeof(string), "%s has left the server. (kicked)", PName);
}
return 1;
}
didn't notice the extra bracket.
Re: help -
willsuckformoney - 10.06.2010
Want me to send you what my full GM looks like? It may help a little better.