24.08.2010, 21:15
Quote:
Something like:
pawn Код:
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/test", true))
{
new string[64],string2[100], masterstring[165], string3[128];
format(string,sizeof(string),"List of teleports", "Stunt Teleports: /home /ss /df /dj /2c /bowl /fd1 /fd2 /hj /hp /lstower /lvairport /pj /skatepark /stadium /tp /tp1 /wallride /waytodeath /deadjump /monstercrash\n");
format(string2,sizeof(string2),"\nDeathmatches: /CNR /omaha /pirate /CSS /Gangwars /Jetpackdm /csdm /Sniperdm /lcdm /area51 /indoordm /MGM /OH /glassmadness /RCWAR /Shipmadness\n");
format(string3,sizeof(string3),"\nRacing and Drifting: /drag2 /drag /karting /karting2 /8track /canalrace /circuit /driftcity /hwydrag /beachcity /skrace /usr /dirt /drift\n");
format(masterstring,sizeof(string3),"%s %s %s",string,string2,string3);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"%s",masterstring);
return 1;
}
return 0;
}
Код:
C:\Users\Braeden\Desktop\test.pwn(39) : warning 202: number of arguments does not match definition C:\Users\Braeden\Desktop\test.pwn(39) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.