String probs *easy fix*
#1

Dont pay attention at Tester it's good but this is for helpers !


Quote:

command(fixvw, playerid, params[]) {
if(Player[playerid][Tester] >= 1)
SetPlayerVirtualWorld(playerid, 0);
format(string, sizeof(string), "%s has fixed your virtual world", GetName(playerid));
SendClientMessage(id, WHITE, string);

}

errors :

Quote:

C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 017: undefined symbol "string"
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 017: undefined symbol "string"
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : error 029: invalid expression, assumed zero
C:\Users\Eigenaar\Desktop\SAMP\gamemodes\VortexRol eplay.pwn(12735) : fatal error 107: too many error messages on one line

Reply
#2

-_-
pawn Код:
new string[50];
You haven't defined string!
pawn Код:
command:fixvw( playerid, params[])
edit: You Haven't defined 'id' also.
Reply
#3

Quote:

command:fixvw( playerid, params[]) {

if(Player[playerid][Tester] >= 1)
SetPlayerVirtualWorld(playerid, 0);
new string[50];
format(string, sizeof(string), "%s has fixed your virtual world", GetName(playerid));
SendClientMessage(playerid, WHITE, string);

}

Comamnd doesnt do anything now ..
Reply
#4

pawn Код:
CMD:fixvw(playerid, params[])
{
    new string[128], id, pname[24];
   
    GetPlayerName(playerid, pname, sizeof(pname));
   
    if(Player[playerid][Tester] >= 1)
    {
        SetPlayerVirtualWorld(id, 0);
        format(string, sizeof(string), "%s has fixed your virtual world", pname);
        SendClientMessage(id, x0FFFFFFFF, string);
    }
    return 1;
}
Reply
#5

The one who get his vw fixed doenst recieve it the admin/helper recievs it !
Reply
#6

please help meee
Reply
#7

I'm not quite sure I understand. Are you trying to set the virtual world of the player who types the command to 0?
Reply
#8

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
pawn Код:
CMD:fixvw(playerid, params[])
{
    new string[128], id, pname[24];
   
    GetPlayerName(playerid, pname, sizeof(pname));
   
    if(Player[playerid][Tester] >= 1)
    {
        SetPlayerVirtualWorld(id, 0);
        format(string, sizeof(string), "%s has fixed your virtual world", pname);
        SendClientMessage(id, x0FFFFFFFF, string);
    }
    return 1;
}
"id" isn't objected to do anything.
Reply
#9

I mean the `Helper` set the VW of the playerid to 0 (Incase of bugg)

And now the command doenst do a thing and the line only goes to who wrote the command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)