Author Topic: Help!!!  (Read 2895 times)

0 Members and 1 Guest are viewing this topic.

Offline Terminatorupgrade 2

  • Wiseguy
  • **
  • Posts: 91
  • pawno scripter
    • View Profile
Help!!!
« on: January 01, 2011, 11:58:45 am »
b_d O_o
...
Can any one give my pawno Keycard Fixed Version

Offline Devian

  • Wiseguy
  • **
  • Posts: 92
    • View Profile
Re: Help!!!
« Reply #1 on: January 01, 2011, 03:39:49 pm »
easy to fix it.
format your os.
use Ubunto.
format again, put Win7 os.
format again,and put Win Xp.

ofc will work.

OH RALE WEY!

Terminatorupgrade2 REPLY STYLE YO

« Last Edit: January 01, 2011, 03:47:11 pm by Devian »

Offline Terminatorupgrade 2

  • Wiseguy
  • **
  • Posts: 91
  • pawno scripter
    • View Profile
Re: Help!!!
« Reply #2 on: January 02, 2011, 10:41:57 am »
Quote
easy to fix it.
format your os.
use Ubunto.
format again, put Win7 os.
format again,and put Win Xp.

ofc will work.

OH RALE WEY!

Terminatorupgrade2 REPLY STYLE YO

You are Really Dumb AssHole Fucking ***** Noob






I m a asking About to fix this
Quote
#include <a_vcmp>
#include <core>
#include <float>
#pragma tabsize 0
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x04A36BFF
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define RED 0xF0182DFF
#define GREEN 0x0FCD18FF
#define WHITE 0xFFFDFDFF
#define ORANGE 0xF6A113FF
#define PURPLEE 0xD22FBCFF
#define OriginalGreen 0x04A36BFF
#define BLUE 0x377DFFFF
#define INACTIVE_PLAYER_ID 255

new pId[255];

enum keycardspawns
{
    Float:kex,
    Float:key,
    Float:kez,
   pid[255],
}

new RandomPlayerSpawns[][keycardspawns] =
{
   {-984.1637,270.5744,8.2461,pId[1]},
   {-1292.9711,79.6803,26.6573,pId[2]},
   {-1244.8879,80.1344,11.8800,pId[3]},
   {-1145.0602,-5.7723,11.4168,pId[4]},
   {-1260.7268,-1061.9330,13.9402,pId[5]},
   {-1670.2209,-61.8558,14.3627,pId[6]},
   {-308.1495,-434.2157,9.2112,pId[7]}
};

public OnGameModeInit()
{
new rand = random(sizeof(RandomPlayerSpawns));
AddStaticPickup(1,508,RandomPlayerSpawns[rand][kex],RandomPlayerSpawns[rand][key],RandomPlayerSpawns[rand][kez]);

return 1;
}

public OnPlayerText(playerid, cmdtext[])
{
   new cmd[256];
   new tmp[256];
   new szMsg[256];
   new idx, newvar;
   new Float:x, Float:y, Float:z;
   
   if(!strcmp(cmdtext,"!keycard",true) == 0)
   {
   if(pId[1])
   {
    SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near A Underground Entrance");
    }
    else if(pId[2]) {
    SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Little-Haiti");
    }
    else if(pId[3]) {
    SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Junkyard");
    }
    else if(pId[4]) {
    SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Junkyard");
    }
    else if(pId[5]) {
    SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Escobar Int.");
    }
    else if(pId[6]) { SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Army Base");
    }
    else if(pId[7]) { SendClientMessageToAll(COLOR_WHITE,"The keycard is rumored to be near Alvin's Villa");
    }
    }
    return 1;
   }
   
public OnPickedUp(pickupid, playerid)
{
   if(pickupid == 1)
   {
   new money; money = GetPlayerMoney(playerid);
   SetPlayerMoney(playerid,money+50000);
   new string[256],pName[MAX_PLAYER_NAME];
   GetPlayerName(playerid,pName,sizeof(pName));
   format(string,sizeof(string),"Congratz!!! %s has found the keycard!!!",pName);
   SendClientMessageToAll(COLOR_WHITE,string);
   return 1;
   }
/////////////////////////////////////////////////////////////////////////////////
   

new string[256], cmd = strtok(cmdtext, idx);
strtok(const string[], &index)
{
   new length = strlen(string);
   while ((index < length) && (string[index] <= ' ')){ index++; }
   new offset = index;
   new result[20];
   while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
   {
      result[index - offset] = string[index];
      index++;
   }
   result[index - offset] = EOS;
   return result;
}
isnumeric(const string[])
{// mike's function
   for (new i = 0, j = strlen(string); i < j; i++) { if (string > '9' || string < '0') return 0; }
   return 1;
}

stock Ratio(Float:input1,Float:input2)
{
    if(input1 > 0 && input2 > 0)
    {
      new Float:output;
      output = input1 / input2;
        return float:output;
    }
    else return false;
}

stock GetDistanceBetweenPlayers(playerid,playerid2)
{
        new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
        new Float:tmpdis;
        GetPlayerPos(playerid,x1,y1,z1);
        GetPlayerPos(playerid2,x2,y2,z2);
        tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
        return floatround(tmpdis);
}