Posts: 284
Threads: 77
Joined: Nov 2013
Quote:
Originally Posted by Tayab
pawn Код:
public OnPlayerConnected(playerid) { new version[40]; GetPlayerVersion(playerid,version,sizeof(version)); if(strcmp(version,"0.3x",false)) == true) { KickWithMessage(playerid,"Please download the latest version of SA-MP"); return 1; } return 1; }
// If you don't have KickWithMessage, then copy this at the end of your .pwn file. forward KickPublic(playerid); public KickPublic(playerid) { Kick(playerid); }
KickWithMessage(playerid, message[]) { SendClientMessage(playerid, COLOR_RED, message); SetTimerEx("KickPublic", 1000, 0, "d", playerid); }
|
C:\Users\MaHdy\Desktop\SPA Server original\gamemodes\SPA.pwn(2236) : error 029: invalid expression, assumed zero
C:\Users\MaHdy\Desktop\SPA Server original\gamemodes\SPA.pwn(2236) : warning 215: expression has no effect
C:\Users\MaHdy\Desktop\SPA Server original\gamemodes\SPA.pwn(2236) : error 001: expected token: ";", but found ")"
C:\Users\MaHdy\Desktop\SPA Server original\gamemodes\SPA.pwn(2236) : error 029: invalid expression, assumed zero
C:\Users\MaHdy\Desktop\SPA Server original\gamemodes\SPA.pwn(2236) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.