28.04.2014, 10:14
I am getting A Problem in these codes:
problem:
And When I Define It,It Gives Me Another Problem:
Please Help.
pawn Код:
if(!strcmp(cmdtext, "/setsong", true))
{
new SongID;
if(sscanf(params, "d", SongID))
{
SendClientMessage(playerid, -1, "USAGE: /setsong [SongID]");
SendClientMessage(playerid, -1, "Note: Song IDs: 1 - Ridin' Dirty Song 2 - GTA San Andreas Trailer Song");
} // SSCANF, if you didn't type a prize the message /setlotto <prize> will show up as a syntax error
if(SongID == 1)
{
Favouritesong[playerid] = 1;
SendClientMessage(playerid, -1, "Successfully Saved Ridin' Dirty Song! Use /usesong To Listen To It");
}
if(SongID == 2)
{
Favouritesong[playerid] = 2;
SendClientMessage(playerid, -1, "Successfully Saved GTA San Andreas Trailer Song! Use /usesong To Listen To It");
}
return 1;
}
pawn Код:
C:\Users\Ahmad\Downloads\Compressed\tg6cmaw4donijkrs8lvpf92u3y57eb\clients\port_2222\gamemodes\LSGW2.pwn(1482) : error 017: undefined symbol "params"
pawn Код:
C:\Users\Ahmad\Downloads\Compressed\tg6cmaw4donijkrs8lvpf92u3y57eb\clients\port_2222\gamemodes\LSGW2.pwn(1482) : error 035: argument type mismatch (argument 1)