Jump to content
  • 0

Question

Posted

Am comanda /ad si cand o compilez imi da eroarea asta

D:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\Untitled.pwn(184) : error 017: undefined symbol "ad"
D:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\Untitled.pwn(184) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

tumblr_ll5sj3LUoZ1qgjpfvo1_250.gif

3 answers to this question

Recommended Posts

Posted

mi se pare ca pt a doua eroare trebuie sa pui

new cmd[256]; 

Tutorialele Mele:

http://www.youtube.com/user/TutorialeAlaRooney/videos

Posted

Uite comanda

[pawn]CMD:ad(playerid,params[])

{

new message[256];

new playername[MAX_PLAYER_NAME];

strmid(message, cmdtext, 3, strlen(cmdtext));

GetPlayerName(playerid, playername, sizeof(playername));

if(!strlen(message))

{

SendClientMessage(playerid, 0xFF0606FF, "|| Usage | Correct usage | /ad [text] ||");

}

else

{

new string[180];

format(string, sizeof(string), "[Radio] %s | mesage paid by %s ||",message, playername);

printf(string);

SendClientMessageToAll(0xFF0606FF, string);

GivePlayerMoney(playerid,-500);

}

}[/pawn]

tumblr_ll5sj3LUoZ1qgjpfvo1_250.gif
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.